package com.boge.modules.shop.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * 
 * @author boge
 * @email dengpbs@163.com
 * @date 2024-12-27 23:30:48
 */
@Data
@TableName("t_order")
public class OrderEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Integer id;
	/**
	 * 用户编号
	 */
	private Integer userId;

	@TableField(exist = false)
	private String userName;

	/**
	 * 商品编号
	 */
	private Integer goodsId;

	@TableField(exist = false)
	private String goodsName;
	@TableField(exist = false)
	private String img;

	@TableField(exist = false)
	private Integer price;
	@TableField(exist = false)
	private String desc;

	/**
	 * 收货地址
	 */
	private String address;
	/**
	 * 购买数量
	 */
	private Integer num;
	/**
	 * 订单状态 0 订单未支付 1 未发货 3 已发货
	 */
	private Integer status;
	/**
	 * 创建时间
	 */
	private Date createTime;

}
